<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script>
      var coverSupport =
        "CSS" in window &&
        typeof CSS.supports === "function" &&
        (CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"));
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
          (coverSupport ? ", viewport-fit=cover" : "") +
          '" />'
      );
    </script>
    <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
    <title></title>
  </head>
  <body>
    <div id="app"><!--app-html--></div>
    <script type="module" src="/src/main.ts"></script>
    <!-- <script type="text/javascript" src="/src/static/js/uni.webview.1.5.6.js"></script> -->
    <script type="text/javascript">
      // 如果当前 url 参数中包含 vconsole=true，则开启 vconsole
      if (window.location.search.includes("vconsole=true")) {
        // 添加 vconsole 脚本
        const vConsoleScript = document.createElement("script");
        vConsoleScript.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js";
        document.body.appendChild(vConsoleScript);
        // 添加 vconsole 到 body 中
        const vConsole = new window.VConsole();
        document.body.appendChild(vConsole.dom);
      }

    </script>
  </body>
</html>
